#ifndef IAL_H
#define IAL_H

#define ALPHABET_LEN 255
#define NOT_FOUND patlen
#define max(a, b) ((a < b) ? b : a)


void restoreHup(char*,int);
void restoreHdown(char*,int);
char *heapsort(char**);

void make_delta1(int *delta1, char *pat, int patlen);
void make_delta2(int *delta2, char *pat, int patlen);

int is_prefix(char *word, int wordlen, int pos);
int suffix_length(char *word, int wordlen, int pos);

int find(char *string, char *pat);


#endif
